package com.wdh.cloud.api.client;

import com.wdh.cloud.domain.product.ProductEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "product-svc")
public interface ProductClient {

    @RequestMapping("/product/getById/{id}")
    ProductEntity getById(@PathVariable(value = "id")  Integer id);
}
